package com.finance.capacity.siteCoefficientMonth.capService;

import com.finance.capacity.siteCoefficientMonth.bean.pojo.SiteCoeMonth;
import com.finance.capacity.siteCoefficientMonth.bean.pojo.SiteCoeMonthList;
import com.finance.capacity.siteCoefficientMonth.capDao.SiteCoefficientMonthMapper;
import com.finance.framework.lang.Page;
import com.finance.framework.lang.PageResultBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author: ly
 * @Date: Created in 2017/8/24
 * @Description:
 */
@Service
public class SiteCoefficientMonthService implements ISiteCoefficientMonthService {
    @Autowired
    private SiteCoefficientMonthMapper siteCoeMonthMapper;


    @Override
    public PageResultBO<SiteCoeMonth> coeSummaryList(Page page) {
        PageResultBO<SiteCoeMonth> pageResultBO = new PageResultBO<SiteCoeMonth>();
        List<SiteCoeMonth> list = siteCoeMonthMapper.listByPage(page);
        pageResultBO.setTotalRecord(page.getTotalRecord());
        pageResultBO.setPageSize(page.getPageSize());
        pageResultBO.setPageNo(page.getPageNo());
        pageResultBO.setDataList(list);
        return pageResultBO;
    }

    @Override
    public List<SiteCoeMonth> exportSiteCoeSummary(SiteCoeMonthList siteCoeMonthList) {
        return siteCoeMonthMapper.CoeSummaryExport(siteCoeMonthList);
    }
}



